/**
 * 
 */
package com.nd.android.u.ui.chatInterfaceImpl;

import com.common.android.utils.task.genericTask.GenericTask;
import com.common.android.utils.task.genericTask.TaskParams;
import com.common.android.utils.task.genericTask.TaskResult;
import com.nd.android.u.controller.innerInterface.IMessageDisplay;
import com.nd.android.u.ui.beanStarApp.DisplayMessage_Person;

/**
 * 删除聊天记录线程
 * <br>Created 2014-12-19 下午6:40:15
 * @version  
 * @author   ChuXY		
 *
 * @see 	 
 */

public class DeleteChatRecordTask extends GenericTask {
	/**消息*/
	private IMessageDisplay mMessage;
	
	/**
	 * 实例化
	 * Creates a new instance of DeleteChatRecordTask.
	 * <br>Created 2014-12-19 下午6:43:48
	 * @param message 消息
	 */
	public DeleteChatRecordTask( IMessageDisplay message){
		mMessage=message;
	}

	@Override
	protected TaskResult _doInBackground(TaskParams... params) {
		if (mMessage != null) {
			mMessage.getProccessInterface().deleteAllMessage();
		}
		return TaskResult.OK;
	}

}
